<%@page import="cn.jhc.bean.UserBean"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<link rel="stylesheet" type="text/css" href="css/main.css"></link>
<div id="top">
	<div style="text-align: center">
		<marquee style="text-align: center" width="900px;" scrollamount="5"
			scrolldelay="200" direction="left" behavior="scroll" loop="x"
			onmouseover="this.stop()" onmouseout="this.start()">
			<div class="gonggao">
				<a href="">公告：公告在这里!</a>
			</div>
		</marquee>
	</div>
</div>
<div id="allinput">
	<%
		UserBean user = (UserBean) session.getAttribute("user");
		if (null == user) {
	%>
	<div id="input">
		<a href="login.jsp?getb=/index.jsp">登录</a><a>|</a> 
		<a href="cancellation.do" onclick="MM_popupMsg('注销成功！')">注销</a><a>|</a>
		<a href="addnewuser.jsp">注册　</a> 
	</div>
	<%
		} else {
	%>
	<div id="input">
		<a>欢迎您！会员：${sessionScope.user.displayname}</a><a>|</a> <a
			href="cancellation.do" onclick="MM_popupMsg('注销成功！')">注销</a><a>|</a>
			<a href="addnewuser.jsp">注册　</a> 
	</div>
	<%
		}
	%>
</div>
<div id="logo">
	<img src="./images/logo4.jpg" width="300"></img>
</div>
<div id="nav">
	<span><a href="index.jsp">首 页</a></span> <span><a
		href="news.jsp?page=1">新闻中心</a></span> <span><a href="index.jsp">活动信息</a></span>
	<span><a href="index.jsp">每月之星</a></span> <span><a
		href="alltaolunqu.jsp">讨论区</a></span> <span><a href="index.jsp">吉他乐谱</a></span>
	<span><a href="JiTa.jsp">吉他小店</a></span>
</div>
<div id="navdown">
</div>